from selenium.webdriver.common.by import By

from Base.base_page import WebBasePage


class LogClickPage(WebBasePage):
    def __init__(self):
        super().__init__()
        # 登录按钮
        self.login_button = (By.XPATH, '//*[@class="user-default"]')
        # 手机号登录
        self.phone_login = (By.XPATH, '//*[@class="navigation-bar-container"]/div[2]')

    # 跳转到登录页面
    def to_login_page(self):
        # 点击登录按钮
        self.click_element(self.find_element(self.login_button))
        # 点击手机号登录
        self.click_element(self.find_element(self.phone_login))
